package com.yonyougov.devops.cruxcisupport.roleapp;

import com.yonyougov.devops.cruxcisupport.util.CruxDevOpsIdGenerator;
import com.yonyougov.devops.fwc.core.entity.BasicEntity;
import com.yonyougov.devops.fwc.core.id.IdGenerator;

import java.io.Serializable;
import java.math.BigInteger;

/***
 * t_role_app
 */
public class RoleAppEntity extends BasicEntity implements Serializable {

    /***
     * 主键
     */
    private BigInteger id;

    /***
     * 角色id
     */
    private BigInteger roleId;

    /***
     * 应用id
     */
    private BigInteger appId;


    /***
     * 获取主键
     *
     * @return 获取主键
     */
    public BigInteger getId() {
        return id;
    }

    /***
     * 设置主键
     *
     * @param id 主键
     */
    public void setId(BigInteger id) {
        this.id = id;
    }

    /***
     * 获取角色id
     *
     * @return 获取角色id
     */
    public BigInteger getRoleId() {
        return roleId;
    }

    /***
     * 设置角色id
     *
     * @param roleId 角色id
     */
    public void setRoleId(BigInteger roleId) {
        this.roleId = roleId;
    }

    /***
     * 获取应用id
     *
     * @return 获取应用id
     */
    public BigInteger getAppId() {
        return appId;
    }

    /***
     * 设置应用id
     *
     * @param appId 应用id
     */
    public void setAppId(BigInteger appId) {
        this.appId = appId;
    }


    @Override
    public String toString() {
        return "RoleAppEntity{" +
                "id=" + id +

                ",roleId=" + roleId +

                ",appId=" + appId +
                '}';
    }

    //<!--用户自定义代码开始-->
    public IdGenerator idGenerator() {
        return new CruxDevOpsIdGenerator();
    }
    //<!--用户自定义代码结束-->
}
